package cn.itsource.pethome.basic.query;

import lombok.Data;

@Data
public class BaseQuery {
    //当前页
    private Integer currentPage;
    //每页条数
    private Integer pageSize;

    /**
     * 分页起始位置
     * @return
     */
    public Integer getBegin(){
        return (this.currentPage - 1) * this.pageSize;
    }
}
